package categoryservice

import (
	"model/categorymodel"
	"services"
)

func GetCateroryList() services.Response {
	cas := categorymodel.GetCategoryList()
	if cas == nil {
		return services.Response{
			Code:    200,
			Success: false,
			Message: "",
			Data:    nil,
		}
	}
	return services.Response{
		Code:    200,
		Success: true,
		Message: "",
		Data:    cas,
	}
}
